local db = TUNING.MOD_AVATAR_BH_MOBIUS.weapon.bh_mobius_sword.lvlup

---@class replica_components
---@field bh_mobius_sword_lvlup replica_bh_mobius_sword_lvlup

---@class replica_bh_mobius_sword_lvlup
---@field inst ent
---@field val netvar
local bh_mobius_sword_lvlup = Class(

---@param self replica_bh_mobius_sword_lvlup
---@param inst ent
function(self, inst)
    self.inst = inst
    for k,_ in pairs(db) do
        self[k] = net_smallbyte(inst.GUID, "bh_mobius_sword_lvlup."..k)
    end
end)

function bh_mobius_sword_lvlup:Get(prefab)
    if self[prefab] then
        return self[prefab]:value()
    end
end

function bh_mobius_sword_lvlup:IsMax(prefab)
    if self[prefab] then
        return self[prefab]:value() >= db[prefab].max
    end
    return false
end


return bh_mobius_sword_lvlup